package com.samsung.utils.phone.primitives;

import com.samsung.utils.phone.helpers.HelperFunctions;



public class ServiceObject implements Comparable<ServiceObject>{
	
	public String dateFormatted;
	public long dateLong;
	
	public ServiceObject(String date){		
		dateLong = Long.parseLong(date);
		this.dateFormatted=HelperFunctions.getInDateFormat(dateLong);
	}	
	public String toHTML(){
		
		return "<H1>ServiceObject</H1></br>";
		
	}
	
	@Override
	public int compareTo(ServiceObject other) {
		if(dateLong>other.dateLong){
			return -1;
		}
		else {
			return 1;
		}
	}
}
